
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class OutputsDemo {
    
    public static void main(String[] args) throws FileNotFoundException {
        
     
        File file =new File("c:\\","text.txt");
        FileOutputStream f = new FileOutputStream(file,false);
        p.println("hello");
        System.out.println("已经成功向文件中添加了一行数据");
        
    }

    private static class p {

        private static void println(String string) {
            throw new UnsupportedOperationException("Not yet implemented");
        }

        public p() {
        }
    }

}
